<?php

App::uses("ValuesBuildInterface", "Lib/Chart");

abstract class ValuesBuildAbstract implements ValuesBuildInterface {
	
	protected $data = array();
	protected $serie = null;

	
	public function __construct($serie) {
		$this->serie=$serie;
	}

	function getData() {
		return $this->data;
	}
	
	protected function loadModel($modelName)  {
	    App::import('Model',$modelName); //load model..
	    $this->{$modelName} = new $modelName(); //and create an instance of it
	}

}
?>